﻿
using Sora.Sharding.EntityFramework.Core;

namespace Sora.Sharding.Application;

/// <summary>
/// 系统配置管理
/// </summary>
[ApiDescriptionSettings("SystemServer")]
public class Demo1EntityAppService : IDynamicApiController
{
    private readonly IDemo1EntityService _service;

    /// <summary>
    /// 
    /// </summary>
    public Demo1EntityAppService(IDemo1EntityService service)
    {
        _service = service;
    }

    /// <summary>
    /// 新增一条
    /// </summary>
    /// <param name = "input" ></param >
    /// <returns ></returns >
    public async Task CreateNowAsync(Demo1Entity input)
    {
        await _service.CreateNowAsync(input);
    }
}
